package xin.ukey.module.system.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 系统-资源表
 * </p>
 *
 * @author ssl
 * @since 2017-10-23
 */
@TableName("sys_resources")
public class Resources extends Model<Resources> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
	private String id;
    /**
     * 创建者
     */
	@TableField("create_by")
	private String createBy;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;
    /**
     * 更新者
     */
	@TableField("update_by")
	private String updateBy;
    /**
     * 更新时间
     */
	@TableField("update_date")
	private Date updateDate;
    /**
     * 备注信息
     */
	private String remarks;
    /**
     * 删除标记,1删除
     */
	@TableField("del_flag")
	private String delFlag;
    /**
     * 乐观锁标记
     */
	private Integer version;
    /**
     * 资源名称
     */
	private String name;
    /**
     * 资源编号
     */
	private Integer number;
    /**
     * 父级资源编号
     */
	@TableField("parent_number")
	private Integer parentNumber;
    /**
     * 资源标识
     */
	@TableField("key_sign")
	private String keySign;
    /**
     * 资源类型
     */
	private String type;
    /**
     * 资源url
     */
	private String url;
    /**
     * 图标
     */
	private String icon;
    /**
     * 权重
     */
	private Integer weight;
    /**
     * 是否隐藏，1隐藏
     */
	@TableField("is_hidden")
	private String isHidden;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getParentNumber() {
		return parentNumber;
	}

	public void setParentNumber(Integer parentNumber) {
		this.parentNumber = parentNumber;
	}

	public String getKeySign() {
		return keySign;
	}

	public void setKeySign(String keySign) {
		this.keySign = keySign;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getWeight() {
		return weight;
	}

	public void setWeight(Integer weight) {
		this.weight = weight;
	}

	public String getIsHidden() {
		return isHidden;
	}

	public void setIsHidden(String isHidden) {
		this.isHidden = isHidden;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Resources{" +
			"id=" + id +
			", createBy=" + createBy +
			", createDate=" + createDate +
			", updateBy=" + updateBy +
			", updateDate=" + updateDate +
			", remarks=" + remarks +
			", delFlag=" + delFlag +
			", version=" + version +
			", name=" + name +
			", number=" + number +
			", parentNumber=" + parentNumber +
			", keySign=" + keySign +
			", type=" + type +
			", url=" + url +
			", icon=" + icon +
			", weight=" + weight +
			", isHidden=" + isHidden +
			"}";
	}
}
